SUPPORT / SAMPLES & SAS NOTES
 

Support

Problem Note 41845: SAS® Information Delivery Portal might incorrectly process files that are stored in WebDAV

DetailsHotfixAboutRate It

Files stored on a WebDAV server have an associated content type. In some situations, if the content type is wrong, the Portal incorrectly processes the files. Common causes of an incorrectly set content type include uploading the file to WebDAV using SAS® code that writes to a WebDAV filename, or loading files to WebDAV using an application that does not set the content type. Below are two instances where you might see issues as the result of an incorrectly specified content type:

  • The WebDAV Content portlet displays an HTML fragment stored on WebDAV. If the file that contains the HTML does not have the content type set to text/html, the WebDAV Content portlet will not recognize the file as valid.
  • For normal Portal access to files (either through search, navigator, or collection portlets), the file might not open correctly. For example, if you have a PDF with the content type set incorrectly, the browser might force you to download the file, instead of opening it directly in Adobe Reader. Because the content type of the file is wrong, the browser does not recognize the file or know how to open it.

To enable the Portal to work with incorrectly set content types, complete the following steps:

  1. If you are using Portal 4.2_M2 or 4.3, download and install the hot fix available from the Hot Fix tab in this note. A hot fix is not required after release 4.3 because the fix is already included.
  2. Log on to SAS® Management Console as the administrative user (for example, sasadm@saspw).
  3. On the Plug-ins tab, expand Application ManagementConfiguration Manager.
  4. Right-click Information Delivery Portal 4.x, and then select Properties.
  5. In the Properties dialog box, click the Advanced tab and add the following name/value pairs.

    Property Name Example value Description
    File.Extensions.Remapping.MimeType pdf=application/pdf,xls=application/vnd.ms-excel,xlsx=application/vnd.ms-excel,zip=application/zip A comma-separated list of file extension and content type pairs. Add one for each file extension that you use in the Portal that does not have the content type properly assigned. The example demonstrates how to add values for PDF, XLS, XLSX, and ZIP files. If you have other file extensions, then add a pair to the list for each value.
    DAV.Content.Consider.As.HTML application/octet-stream This property is specifically for the WebDAV content portlet. The values specified here are a comma-separated list of content types that the WebDAV content portlet should consider as HTML pages.

  6. Restart your web application server.


Operating System and Release Information

Product FamilyProductSystemProduct ReleaseSAS Release
ReportedFixed*ReportedFixed*
SAS SystemSAS Information Delivery PortalSolaris for x644.24.319.2 TS2M09.3 TS1M0
Linux for x644.24.319.2 TS2M09.3 TS1M0
Linux4.24.319.2 TS2M09.3 TS1M0
HP-UX IPF4.24.319.2 TS2M09.3 TS1M0
64-bit Enabled Solaris4.24.319.2 TS2M09.3 TS1M0
64-bit Enabled HP-UX4.24.319.2 TS2M09.3 TS1M0
64-bit Enabled AIX4.24.319.2 TS2M09.3 TS1M0
Windows Vista for x644.24.319.2 TS2M09.3 TS1M0
Windows Vista4.24.319.2 TS2M09.3 TS1M0
Microsoft Windows XP Professional4.24.319.2 TS2M09.3 TS1M0
Microsoft Windows Server 2008 for x644.24.319.2 TS2M09.3 TS1M0
Microsoft Windows Server 2003 for x644.24.319.2 TS2M09.3 TS1M0
Microsoft Windows Server 2003 Standard Edition4.24.319.2 TS2M09.3 TS1M0
Microsoft Windows Server 2003 Enterprise Edition4.24.319.2 TS2M09.3 TS1M0
Microsoft Windows Server 2003 Datacenter Edition4.24.319.2 TS2M09.3 TS1M0
Microsoft® Windows® for x644.24.319.2 TS2M09.3 TS1M0
Microsoft Windows XP 64-bit Edition4.24.319.2 TS2M09.3 TS1M0
Microsoft Windows Server 2003 Enterprise 64-bit Edition4.24.319.2 TS2M09.3 TS1M0
Microsoft Windows Server 2003 Datacenter 64-bit Edition4.24.319.2 TS2M09.3 TS1M0
Microsoft® Windows® for 64-Bit Itanium-based Systems4.24.319.2 TS2M09.3 TS1M0
z/OS4.24.319.2 TS2M09.3 TS1M0
* For software releases that are not yet generally available, the Fixed Release is the software release in which the problem is planned to be fixed.